﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace eLoan.Models
{
    public class VoidPaymentModel
    {
        public List<VoidPaymentItem> VoidLoanPaymentItems { get; set; }

        [Display(Name="Select a branch")]
        public IEnumerable<SelectListItem> Branches { get; set; }

        public string SelectedBranchCode { get; set; }

        [Display(Name = "Select an agent")]
        public IEnumerable<SelectListItem> Agents { get; set; }

        [Display(Name = "Search text")]
        public string SearchText { get; set; }

        public int SelectedAgentID { get; set; }

        public bool IsAgentSelected { get; set; }

        public bool IsAdmin { get; set; }

        [Display(Name = "Date posted")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
        public DateTime DatePosted { get; set; }
    }

    public class VoidPaymentItem
    {
        [Display(Name="Borrower")]
        public string BorrowerName { get; set; }

        [Display(Name = "Agent")]
        public string AgentName { get; set; }

        [Display(Name = "Document No")]
        public string DocumentNo { get; set; }

        [Display(Name = "PaymentDate")]
        public DateTime PaymentDate { get; set; }

        [Display(Name = "Payment")]
        public string PaymentTypeName { get; set; }

        [Display(Name = "Payment")]
        public decimal PaymentAmount { get; set; }

        [Display(Name = "Paid Penalty")]
        public decimal PaidPenalty { get; set; }

        [Display(Name = "Payment Status")]
        public string PaymentStatus { get; set; }

        [Display(Name = "Remarks")]
        public string Remarks { get; set; }

        public int PaymentID { get; set; }

        public bool IsSelected { get; set; }


    }

}